﻿using Llaans.Web.Models;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace LChat.Data
{
    public class ChanelsName
    {
        public int Id { get; set; }
        [Required]
        [Display(Name="име на чат канала")]
        [StringLength(500, MinimumLength=3, ErrorMessage="името на чата трябва да е минимум 3 максимум 500 сивола")]
        public string ChatsName { get; set; }

        public virtual ICollection<ChatMessage> ChatMessage { get; set; }

        public DateTime CreationTime { get; set; }

        public ICollection<ChatRole> Roles { get; set; }

        public ExternalLoginConfirmationViewModel Author { get; set; }

    }
}
